import { request } from '@/utils/request.js'

// 添加考勤数据
export function attendance(data){
	return request({
		url:'/attendance/attendance',
		method:'POST',
		data:data
	})
}

// 查看上班状态
export function stateWork(data){
	return request({
		url:'/attendance/stateWork',
		method:'post',
		data
	})
}

// 上班打卡
export function startWork(data){
	return request({
		url:'/attendance/startWork',
		method:'post',
		data
	})
}

// 下班打卡
export function endWork(data){
	return request({
		url:'/attendance/endWork',
		method:'post',
		data
		
	})
}

// 判断是否需要重置
export function resetWork(data){
	return request({
		url:'/attendance/resetWork',
		method:'post',
		data
	
	})
}